home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ASTRONOM / H139.ZIP / UI101.ZIP / IO / DR / DR.H < prev   
C/C++ Source or Header  |  1991-11-04  |  2KB  |  64 lines

  1. /***************************************************************
  2.  
  3.     dr.h            Header file for DR (directory)
  4.             io standards
  5.  
  6.             Copyright (c) 1991, Ted A. Campbell
  7.  
  8.             Bywater Software
  9.             P. O. Box 4023 
  10.             Duke Station 
  11.             Durham, NC  27706
  12.  
  13.             email: tcamp@hercules.acpub.duke.edu
  14.  
  15.     Copyright and Permissions Information:
  16.  
  17.     All U.S. and international copyrights are claimed by the
  18.     author. The author grants permission to use this code
  19.     and software based on it under the following conditions:
  20.     (a) in general, the code and software based upon it may be 
  21.     used by individuals and by non-profit organizations; (b) it
  22.     may also be utilized by governmental agencies in any country,
  23.     with the exception of military agencies; (c) the code and/or
  24.     software based upon it may not be sold for a profit without
  25.     an explicit and specific permission from the author, except
  26.     that a minimal fee may be charged for media on which it is
  27.     copied, and for copying and handling; (d) the code must be 
  28.     distributed in the form in which it has been released by the
  29.     author; and (e) the code and software based upon it may not 
  30.     be used for illegal activities. 
  31.  
  32. ***************************************************************/
  33.  
  34. #define    MAX_PATHLENGTH    64
  35.  
  36. /* File types for return */
  37.  
  38. #define    FILE_NORMAL    0
  39. #define    FILE_DIRECTORY    1
  40. #define    FILE_EXECUTABLE    2
  41.  
  42. /* Structure for directory entries */
  43.  
  44. struct dir_ent
  45.     {
  46.     char     filename[ MAX_PATHLENGTH ];
  47.     char    pathname[ MAX_PATHLENGTH ];
  48.     int     type;
  49.     long    size;
  50.     };
  51.  
  52. /* externals */
  53.  
  54. extern    int    dr_fs;
  55. extern    char    dr_all[ MAX_PATHLENGTH ];
  56.  
  57. #ifndef TRUE
  58. #define TRUE    1
  59. #define FALSE   0
  60. #endif
  61.  
  62.  
  63.  
  64.